package com.decelo.jpa.entity.sys;


import org.apache.shiro.authc.AuthenticationToken;

/**
 * JWTtoken转换
 * @author:Jronzhang Create_Time:2019-01-01 19:17
 */
public class jwt implements AuthenticationToken {
    private String token;

    public  jwt(String token){
        this.token=token;
    }
    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token.split(":")[0];
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
